<?php
/**
 * CreateTime: 2023/12/5 11:02
 * User:LinQ
 */

namespace App\Models\Files;

use App\Models\BasicModel;

class FilesModel extends BasicModel
{
    protected $table = 'files';

    protected $primaryKey = 'file_id';

    protected $fillable = [
        'file_id',
        'com_id',
        'file_name',
        'file_hash',
        'file_path',
        'owner_id',
        'created_at',
        'updated_at',
    ];

    protected $casts = [
        'file_id' => 'integer',
        'com_id' => 'integer',
        'file_name' => 'string',
        'file_hash' => 'string',
        'file_path' => 'string',
        'owner_id' => 'integer',
        'created_at'  => 'string',
        'updated_at'  => 'string',
    ];


    protected $hidden = [
        'created_at'  => 'string',
        'updated_at'  => 'string'
    ];

}